import request from '@/utils/request'
export const getCouponShelfList = (params) => {
  return request({
    url: 'sys/goodsExchangeCertificate/list',
    method: 'get',
    params
  })
}

export const addCoupon = (data) => {
  return request({
    url: `sys/goodsExchangeCertificate/generateExchangeCertificate`,
    method: 'post',
    data
  })
}

export const updateIsEnable = (data) => {
  return request({
    url: `sys/goodsExchangeCertificate/update`,
    method: 'put',
    data
  })
}
